package com.telnetnz.ticketdesk.dao.entity;

import java.util.Date;

import com.rockbb.common.dao.InitializableObject;

public class OperationLogEntity implements java.io.Serializable,
		InitializableObject {

	private static final long serialVersionUID = -6232302048091708969L;
	private long id;
	private Date time;
	private long userId;
	private String action;
	private int objectType;
	private long objectId;
	private String parameters;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public int getObjectType() {
		return objectType;
	}

	public void setObjectType(int objectType) {
		this.objectType = objectType;
	}

	public long getObjectId() {
		return objectId;
	}

	public void setObjectId(long objectId) {
		this.objectId = objectId;
	}

	public String getParameters() {
		return parameters;
	}

	public void setParameters(String parameters) {
		this.parameters = parameters;
	}

	public void initialize() {
		time = new Date();
		action = "";
		parameters = "";
	}
}